package com.ruoyi.user.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.user.mapper.UserLikeBackMapper;
import com.ruoyi.user.model.pojo.entity.UserLikeBack;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户点赞主页 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2024-11-23
 */
@Service
public class UserLikeBackServiceImpl extends ServiceImpl<UserLikeBackMapper, UserLikeBack> implements IUserLikeBackService {

    @Override
    public Long getUserCount(Long userId) {
        return lambdaQuery().eq(UserLikeBack::getAimUserId, userId).count();
    }
}
